package com.zryc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * Hello world!
 *
 */
//注册为spring boot应用程序
@SpringBootApplication
//开启mapper扫描，并指定Mapper接口所在的包
@MapperScan("com.zryc.mapper")
//开启服务注册功能
@EnableDiscoveryClient
public class ProductApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(ProductApp.class,args);
    }
}
